import { lazy } from 'react'
import { RouterList } from '../utils/index'

const routerlist: RouterList = [
  {
    path: '/',
    to: '/home'
  },
  {
    path: '/home',
    element: lazy(() => import('../pages/Home')),
    children: [
      {
        path: '/home/a',
        element: lazy(() => import('../pages/A'))
      },
      {
        path: '/home/b',
        element: lazy(() => import('../pages/B'))
      },
      {
        path: '/home',
        to: '/home/a'
      }
    ]
  },
  {
    path: '/login',
    element: lazy(() => import('../pages/Login'))
  }
]
export default routerlist
